package com.ghc.service.impl;

import com.ghc.service.EmailService;
import com.ghc.util.QQMailUtils;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.Service;

@Service
@RequiredArgsConstructor
public class EmailServiceImpl implements EmailService {

    private final QQMailUtils qqMailUtils;

    @Override
    public Boolean send(String email, String code) {
        return qqMailUtils.sendMail(email, code);
    }
}
